package com.zzy.demo.controller;

import com.zzy.demo.service.IUserService;
import com.zzy.mvcframework.annotations.MyAutowired;
import com.zzy.mvcframework.annotations.MyController;
import com.zzy.mvcframework.annotations.MyRequestMapping;
import com.zzy.mvcframework.annotations.Security;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * 文件描述: <br>
 * 版权所有: Copyright (c) 2021/5/30<br>
 * 完成日期: 2021/5/30<br>
 *
 * @author zainzhang
 */
@MyController
@MyRequestMapping("/security")
@Security("zzy")
public class SecurityController {

    @MyAutowired
    private IUserService userService;

    @MyRequestMapping(value = "/handle01")
    public String query(HttpServletRequest request, HttpServletResponse response, String name) {
        System.out.println("security name ===" + userService.get(name));
        return "";
    }
}
